from django.urls import path
from . import views
'''
1. Add an import:  from my_app import views
2. Add a URL to urlpatterns:  path('', views.home, name='home')
'''

app_name = 'user'
# 应用路由
urlpatterns = [
    # 第一个参数是路由路径，第二个参数是路由对应的视图路由
    # 第三个参数是路由名字
    path('login', views.login, name="login"),
    path('logout', views.logout, name="logout"),
    path('register', views.register, name="register"),
    path('center', views.center, name="center"),
    path('updatepassword', views.updatepassword, name="updatepassword"),
]